import java.util.Random;
import java.util.Scanner;

public class java2023111 {
    public static void main1(String[] args) {
        int i = 1;
        while(i <= 100) {
            if(i % 3== 0&&i % 5 == 0) {
                System.out.println(i);
            }
            else {
                i++;
                continue;
            }
            i++;
        }
    }

    public static void main2(String[] args) {
        System.out.println("输出且换行");
        System.out.print("输出且不换行\n");
        System.out.printf("%s\n","格式化输出");
    }


    public static void main3(String[] args) {
        Scanner sc=new Scanner(System.in);
//        int a=sc.nextInt();
//        System.out.println(a);
//        String name=sc.nextLine();
//        System.out.println(name);
        float a=sc.nextFloat();
        System.out.println(a);

    }

    public static void main4(String[] args) {
        Scanner sc=new Scanner(System.in);
        while(sc.hasNext()){
            String a=sc.nextLine();
            System.out.println(a);
        }
    }

    public static void main(String[] args) {
        Random random=new Random();
        Scanner sc=new Scanner(System.in);
        int ra=random.nextInt(100);
        while(true){
            System.out.println("输入你猜想的数字");
            int num = sc.nextInt();
            if(num > ra){
                System.out.println("猜大了");
            } else if (num<ra) {
                System.out.println("猜小了");

            }else {
                System.out.println("猜对了");
                break;
            }
        }
    }

}
